<div id="tabs">
	<ul>
        <li id="current"><?php echo $this->Html->link(__('Danh sách các lớp', true), array('controller'=>'lops','action' => 'index')); ?></li>
        <li><?php echo $this->Html->link(__('Tạo lớp', true), array('action' => 'add')); ?></li>
	</ul>
 </div>


<div class="lops index">
	<h2><?php __('Ds Lớp');?></h2>
	<table cellpadding="0" cellspacing="0" id="tables">
	<tr>
			<th><?php echo $this->Paginator->sort('STT');?></th>
			<!--<th><?php //echo $this->Paginator->sort('nganh_id');?></th>
			--><th><?php echo $this->Paginator->sort('Mã lớp');?></th>
			<th><?php echo $this->Paginator->sort('Tên lớp');?></th>
			<th class="actions"><?php __('Lựa chọn');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($lops as $lop):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $lop['Lop']['id']; ?>&nbsp;</td>
		<!--<td>
			<?php // echo $this->Html->link($lop['Nganh']['id'], array('controller' => 'nganhs', 'action' => 'view', $lop['Nganh']['id'])); ?>
		</td>
		--><td><?php echo $lop['Lop']['malop']; ?>&nbsp;</td>
		<td><?php echo $lop['Lop']['tenLop']; ?>&nbsp;</td>
		<td class="actions">
			<?php //echo $this->Html->link(__('Xem', true), array('action' => 'view', $lop['Lop']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $lop['Lop']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $lop['Lop']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $lop['Lop']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Trước', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Sau', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<!--<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Tạo Lớp', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Ds Ngành', true), array('controller' => 'nganhs', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Nganh', true), array('controller' => 'nganhs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Ds Sinh Viên', true), array('controller' => 'sinhviens', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Sinhvien', true), array('controller' => 'sinhviens', 'action' => 'add')); ?> </li>
	</ul>
--></div>